package org.xu.upms.server.dao.impl;

import org.springframework.stereotype.Repository;
import org.xu.upms.server.dao.UserDao;
import org.xu.upms.server.model.App;
import org.xu.upms.server.model.User;

import com.xu.commons.dao.Database;
import com.xu.commons.dao.mpl.BaseDaoImpl;
@Repository
public class UserDaoImpl extends BaseDaoImpl<User,Integer>  implements UserDao{

	@Override
	public User findByAccount(String account) {

		// 在 user 表中根据 username 查询用户是否已存在
        String selectSQL = "select * from user where username = ?";
        User user= Database.queryEntity(User.class, selectSQL, account);
		return user;
	}


}
